/**
 *  *2010-10-13 下午09:52:36  add 
 */
package com.base.myproject.client.busi.ccode;

import com.base.myproject.client.ui.celleditor.BaseComboBoxForm;
import com.extjs.gxt.ui.client.data.BaseModelData;

/**
 * 客户的选择
 * 
 * @author Administrator 2010-10-13 javazgw@gmail.com
 */
public class CcodeSelect {

	int type = 0;

	public CcodeSelect(int type) {
		this.type = type;

	}

	public BaseComboBoxForm<BaseModelData> getCcodeSelect() {
//		BaseComboBoxForm<BaseModelData> ccode = new BaseComboBoxForm<BaseModelData>(
//				"ccode", "cname", "ccode", "where ccodetype %26 "+type+" ="+type, true);
//		
		
		BaseComboBoxForm<BaseModelData> ccode = new BaseComboBoxForm<BaseModelData>(
				"ccode", "cname", "WMS_ccode", true," ccodetype & "+type+" ="+type);
		
		ccode.setFieldLabel("客户");
		return ccode;

	}
}
